class Example {
  static staticProp = 'staticValue'; // 静态属性
  static anotherStaticMethod() {}    // 静态方法

  constructor() {
    this.instanceProp = 'instanceValue';
  }

  instanceMethod() {}
  anotherInstanceMethod() {}
}
function getClassMembers(Class) {
  const instanceMembers = Object.getOwnPropertyNames(Class.prototype)
    .filter((name) => name !== 'constructor'); // 去掉 constructor

  const staticMembers = Object.getOwnPropertyNames(Class);

  return {
    instanceMembers,
    staticMembers,
  };
}

console.log(getClassMembers(Example));